package testaux;

public class StatementList {
    public final Statement head;
    public final StatementList tail;

    public StatementList(Statement head) {
        this.head = head;
        this.tail = null;
    }
    
    public StatementList(Statement head, StatementList tail) {
        this.head = head;
        this.tail = tail;
    }

    public String toString() {
        return "| " + head.toString() + " |\n" + (tail == null ? "" : tail.toString());
    }
}
